package cn.walls1717.wallsmall.product.feign;

import cn.walls1717.wallsmall.common.pojo.to.SkuReductionTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import cn.walls1717.wallsmall.common.pojo.to.SpuBoundTO;
import cn.walls1717.wallsmall.common.utils.R;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程调用coupon服务
 *
 * @author walls1717
 * @since 2022/10/29 13:49
 **/
@FeignClient("wallsmall-coupon")
public interface CouponFeignService {

    /**
     * 保存商品积分信息 sms_spu_bounds
     *
     * @param spuBoundTO 保存参数
     * @return 保存是否成功
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTO spuBoundTO);

    /**
     * 保存sku阶梯价格，满减，会员价格信息 sms_sku_ladder sms_sku_full_reduction sms_member_price
     * 
     * 
     * @param skuReductionTO 保存参数
     * @return 保存是否成功
     */
    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTO skuReductionTO);
}
